#define _CRT_SECURE_NO_WARNINGS 1
int findMaxConsecutiveOnes(int* nums, int numsSize) {
	int maxcount = 0;
	int count = 0;
	for (int i = 0; i < numsSize; i++) {
		if (nums[i] == 1) {
			count++;
		}
		else {
			maxcount = fmax(count, maxcount);
			count = 0;
		}
	}
	maxcount = fmax(count, maxcount);
	return maxcount;
}